package routers

import (
	"quickstart/controllers"
	"github.com/astaxie/beego"
)

func init() {
    beego.Router("/", &controllers.MainController{})
	//beego.Router("/user/?:id", &controllers.UserController{},"get:GetInfo")
	beego.Router("/user", &controllers.UserController{},"get:Get")
	//beego.Router("/user/:id([0-9]+)", &controllers.UserController{},"get:GetNum")
	//beego.Router("/user/:username([\\w]+)", &controllers.UserController{},"get:GetNum")
	//beego.Router("/user/*.*", &controllers.UserController{},"get:GetNum")
	beego.Router("/user/*", &controllers.UserController{},"get:GetNum;post:PostData")
}
